package www.ym.com.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Account implements Serializable {

    public static final long serialVersionUID = 1L;

    //主键id
    private Long id;

    //用户Id
    private Long userId;

    //总金额
    private Integer totalMenoy;

    //可用金额
    private Integer kyMenoy;

    //冻结金额
    private Integer djMenoy;

    //银行卡号
    private String bankCardNumber;

    //银行名称
    private String bankName;

    //银行行号
    private String bankNumber;

    //是否默认 0:是 1：否
    private Integer isDefault;


    //更改时间
    @TableField(fill = FieldFill.INSERT_UPDATE)  //插入和修改时填充字段
    private LocalDateTime updateTime;

    //创建时间
    @TableField(fill = FieldFill.INSERT)  //插入和修改时填充字段
    private LocalDateTime createTime;



}
